export const boxCoords = [
  [
    [10, 40],
    [40, 40],
    [40, 10],
    [10, 10],
    [10, 40]
  ]
];
export const lineStringCoords = [
  [25, 50],
  [25, 0]
];
export const splitBoxCoords1 = [[
  [10, 40],
  [25, 40],
  [25, 10],
  [10, 10],
  [10, 40]
]];
export const splitBoxCoords2 = [[
  [25, 40],
  [40, 40],
  [40, 10],
  [25, 10],
  [25, 40]
]];

export const lineStringLFormedCoords = [
  [25, 50],
  [25, 25],
  [50, 25]
];
export const splitBoxLFormedCoords1 = [[
  [10, 40],
  [25, 40],
  [25, 25],
  [40, 25],
  [40, 10],
  [10, 10],
  [10, 40]
]];
export const splitBoxLFormedCoords2 = [[
  [25, 40],
  [40, 40],
  [40, 25],
  [25, 25],
  [25, 40]
]];

export const uFormedPolygonCoords = [[
  [10, 40],
  [20, 40],
  [20, 30],
  [30, 30],
  [30, 40],
  [40, 40],
  [40, 10],
  [10, 10],
  [10, 40]
]];
export const lineStringCoords2 = [
  [0, 35],
  [50, 35]
];
export const splitUFormerdCoords1 = [[
  [10, 40],
  [20, 40],
  [20, 35],
  [10, 35],
  [10, 40]
]];
export const splitUFormerdCoords2 = [[
  [20, 35],
  [20, 30],
  [30, 30],
  [30, 35],
  [40, 35],
  [40, 10],
  [10, 10],
  [10, 35],
  [20, 35]
]];
export const splitUFormerdCoords3 = [[
  [30, 35],
  [30, 40],
  [40, 40],
  [40, 35],
  [30, 35]
]];

export const pointCoords = [13, 37];
export const bufferedPointCoords = [
  [
    [ 13.00179663056824, 36.99999999999998 ],
    [ 13.001762108815651, 36.99972007355669 ],
    [ 13.001659870209481, 36.99945090355771 ],
    [ 13.001493843722024, 36.99920283422214 ],
    [ 13.001270409658089, 36.9989853989654 ],
    [ 13.000998154463447, 36.99880695399729 ],
    [ 13.000687540752546, 36.99867435715268 ],
    [ 13.000350505236103, 36.998592704303896 ],
    [ 13, 36.99856513349113 ],
    [ 12.999649494763897, 36.998592704303896 ],
    [ 12.999312459247454, 36.99867435715268 ],
    [ 12.999001845536553, 36.99880695399729 ],
    [ 12.998729590341911, 36.9989853989654 ],
    [ 12.998506156277976, 36.99920283422214 ],
    [ 12.998340129790519, 36.99945090355771 ],
    [ 12.998237891184349, 36.99972007355669 ],
    [ 12.998203369431762, 36.99999999999998 ],
    [ 12.998237891184349, 37.0002799254127 ],
    [ 12.998340129790519, 37.00054909247687 ],
    [ 12.998506156277976, 37.00079715742017 ],
    [ 12.998729590341911, 37.001014587495874 ],
    [ 12.999001845536553, 37.00119302728296 ],
    [ 12.999312459247454, 37.0013256197353 ],
    [ 12.999649494763897, 37.00140726964927 ],
    [ 13, 37.00143483943147 ],
    [ 13.000350505236103, 37.00140726964927 ],
    [ 13.000687540752546, 37.0013256197353 ],
    [ 13.000998154463447, 37.00119302728296 ],
    [ 13.001270409658089, 37.001014587495874 ],
    [ 13.001493843722024, 37.00079715742017 ],
    [ 13.001659870209481, 37.00054909247687 ],
    [ 13.001762108815651, 37.0002799254127 ],
    [ 13.00179663056824, 36.99999999999998 ]
  ]
];

export const bufferedBoxCoords = [
  [
    [ 9.998203369431762, 40 ],
    [ 9.998237891184349, 40.000268502060486 ],
    [ 9.99834012979052, 40.00052668474164 ],
    [ 9.998506156277976, 40.000764626398905 ],
    [ 9.998729590341911, 40.000973183323886 ],
    [ 9.999001845536554, 40.00114434109299 ],
    [ 9.999312459247454, 40.00127152251118 ],
    [ 9.999649494763899, 40.001349840323954 ],
    [ 10, 40.00137628499277 ],
    [ 40, 40.00137628499277 ],
    [ 40.0003505052361, 40.001349840323954 ],
    [ 40.000687540752544, 40.00127152251118 ],
    [ 40.00099815446345, 40.00114434109299 ],
    [ 40.0012704096581, 40.000973183323886 ],
    [ 40.00149384372203, 40.000764626398905 ],
    [ 40.00165987020948, 40.00052668474164 ],
    [ 40.001762108815655, 40.000268502060486 ],
    [ 40.00179663056824, 40 ],
    [ 40.00179663056824, 9.99999999999999 ],
    [ 40.001762108815655, 9.999654819542679 ],
    [ 40.00165987020948, 9.99932290383095 ],
    [ 40.00149384372203, 9.999017008258903 ],
    [ 40.0012704096581, 9.998748888310756 ],
    [ 40.00099815446345, 9.998528847790649 ],
    [ 40.000687540752544, 9.998365342837268 ],
    [ 40.0003505052361, 9.998264656943181 ],
    [ 40, 9.998230659470266 ],
    [ 10, 9.998230659470266 ],
    [ 9.999649494763899, 9.998264656943181 ],
    [ 9.999312459247454, 9.998365342837268 ],
    [ 9.999001845536554, 9.998528847790649 ],
    [ 9.998729590341911, 9.998748888310756 ],
    [ 9.998506156277976, 9.999017008258903 ],
    [ 9.99834012979052, 9.99932290383095 ],
    [ 9.998237891184349, 9.999654819542679 ],
    [ 9.998203369431762, 9.99999999999999 ],
    [ 9.998203369431762, 40 ]
  ]
];

export const bufferedLineStringCoords = [
  [
    [ 25.00179663056824, 0 ],
    [ 25.001762108815655, -0.00035050523610816176 ],
    [ 25.00165987020948, -0.0006875407525447338 ],
    [ 25.001493843722027, -0.0009981544633985908 ],
    [ 25.001270409658094, -0.0012704096579964463 ],
    [ 25.00099815446345, -0.0014938437218723426 ],
    [ 25.000687540752548, -0.0016598702092593726 ],
    [ 25.000350505236106, -0.001762108815383773 ],
    [ 25.000000000000004, -0.0017966305679570414 ],
    [ 24.999649494763897, -0.001762108815383773 ],
    [ 24.999312459247456, -0.0016598702092593726 ],
    [ 24.999001845536558, -0.0014938437218723426 ],
    [ 24.99872959034191, -0.0012704096579964463 ],
    [ 24.998506156277976, -0.0009981544633985908 ],
    [ 24.998340129790524, -0.0006875407525447338 ],
    [ 24.99823789118435, -0.00035050523610816176 ],
    [ 24.998203369431764, 0 ],
    [ 24.998203369431764, 49.999999999999986 ],
    [ 24.99823789118435, 50.000225299894986 ],
    [ 24.998340129790524, 50.00044194064562 ],
    [ 24.998506156277976, 50.000641597040456 ],
    [ 24.99872959034191, 50.00081659665229 ],
    [ 24.999001845536558, 50.0009602146462 ],
    [ 24.999312459247456, 50.0010669321653 ],
    [ 24.999649494763897, 50.00113264837123 ],
    [ 25.000000000000004, 50.00115483799815 ],
    [ 25.000350505236106, 50.00113264837123 ],
    [ 25.000687540752548, 50.0010669321653 ],
    [ 25.00099815446345, 50.0009602146462 ],
    [ 25.001270409658094, 50.00081659665229 ],
    [ 25.001493843722027, 50.000641597040456 ],
    [ 25.00165987020948, 50.00044194064562 ],
    [ 25.001762108815655, 50.000225299894986 ],
    [ 25.00179663056824, 49.999999999999986 ],
    [ 25.00179663056824, 0 ]
  ]
];

export const boxCoords2 = [
  [
    [15, 35],
    [35, 35],
    [35, 15],
    [15, 15],
    [15, 35]
  ]
];

export const holeCoords = [
  boxCoords[0],
  boxCoords2[0]
];

export const bufferedHoleCoords = [
  [
    [ 9.998203369431762, 40 ],
    [ 9.998237891184349, 40.000268502060486 ],
    [ 9.99834012979052, 40.00052668474164 ],
    [ 9.998506156277976, 40.000764626398905 ],
    [ 9.998729590341911, 40.000973183323886 ],
    [ 9.999001845536554, 40.00114434109299 ],
    [ 9.999312459247454, 40.00127152251118 ],
    [ 9.999649494763899, 40.001349840323954 ],
    [ 10, 40.00137628499277 ],
    [ 40, 40.00137628499277 ],
    [ 40.0003505052361, 40.001349840323954 ],
    [ 40.000687540752544, 40.00127152251118 ],
    [ 40.00099815446345, 40.00114434109299 ],
    [ 40.0012704096581, 40.000973183323886 ],
    [ 40.00149384372203, 40.000764626398905 ],
    [ 40.00165987020948, 40.00052668474164 ],
    [ 40.001762108815655, 40.000268502060486 ],
    [ 40.00179663056824, 40 ],
    [ 40.00179663056824, 9.99999999999999 ],
    [ 40.001762108815655, 9.999654819542679 ],
    [ 40.00165987020948, 9.99932290383095 ],
    [ 40.00149384372203, 9.999017008258903 ],
    [ 40.0012704096581, 9.998748888310756 ],
    [ 40.00099815446345, 9.998528847790649 ],
    [ 40.000687540752544, 9.998365342837268 ],
    [ 40.0003505052361, 9.998264656943181 ],
    [ 40, 9.998230659470266 ],
    [ 10, 9.998230659470266 ],
    [ 9.999649494763899, 9.998264656943181 ],
    [ 9.999312459247454, 9.998365342837268 ],
    [ 9.999001845536554, 9.998528847790649 ],
    [ 9.998729590341911, 9.998748888310756 ],
    [ 9.998506156277976, 9.999017008258903 ],
    [ 9.99834012979052, 9.99932290383095 ],
    [ 9.998237891184349, 9.999654819542679 ],
    [ 9.998203369431762, 9.99999999999999 ],
    [ 9.998203369431762, 40 ]
  ],[
    [ 15.001796630568238, 34.99852827316237 ],
    [ 15.001796630568238, 15.001735404823759 ],
    [ 34.99820336943176, 15.001735404823759 ],
    [ 34.99820336943176, 34.99852827316237 ],
    [ 15.001796630568238, 34.99852827316237 ]
  ]
];

export const pointCoords2 = [37, 13];
export const pointCoords3 = [47, 11];
export const pointCoords4 = [11, 47];
export const mergedPointCoordinates = [
  [13, 37],
  [37, 13]
];
export const mergedPointCoordinates2 = [
  [13, 37],
  [37, 13],
  [47, 11],
  [11, 47]
];

export const boxCoords3 = [[
  [0, 20],
  [20, 20],
  [20, 0],
  [0, 0],
  [0, 20]
]];

export const mergedBoxCoords = [
  boxCoords,
  boxCoords3
];

export const mergedLineStringCoordinates = [
  lineStringCoords,
  lineStringCoords2
];

export const unionedBoxCoordinates = [[
  [ 10, 40 ],
  [ 40, 40 ],
  [ 40, 10 ],
  [ 10, 10 ],
  [ 10, 40 ]
]];

export const differenceBoxCoords = [
  [
    [ 10, 40 ], [ 40, 40 ], [ 40, 10 ], [ 10, 10 ], [ 10, 40 ]
  ],[
    [ 15, 35 ], [ 15, 15 ], [ 35, 15 ], [ 35, 35 ], [ 15, 35 ]
  ]
];

export const intersectionCoords = [
  [
    [ 20, 10 ], [ 10, 10 ], [ 10, 20 ], [ 20, 20 ], [ 20, 10 ]
  ]
];

export const boxCoords4 = [[
  [0, 5],
  [5, 5],
  [5, 0],
  [0, 0],
  [0, 5]
]];

export const expectedMultiPolygon = [
  [
    [
      [10, 40],
      [40, 40],
      [40, 10],
      [10, 10],
      [10, 40]
    ]
  ],
  [
    [
      [15, 35],
      [35, 35],
      [35, 15],
      [15, 15],
      [15, 35]
    ]
  ],
  [
    [
      [0, 20],
      [20, 20],
      [20, 0],
      [0, 0],
      [0, 20]
    ]
  ],
  [
    [
      [0, 5],
      [5, 5],
      [5, 0],
      [0, 0],
      [0, 5]
    ]
  ]
];

export const holeCoords2 = [
  [
    [10,40],
    [40,40],
    [40,10],
    [-7,10],
    [-7,40],
    [10,15],
    [10,40]
  ],
  [
    [15,15],
    [35,15],
    [35,35],
    [15,35],
    [15,15]
  ]
];

export const holeCoords2CutLine = [
  [
    -20,
    25
  ],
  [
    50,
    25
  ]
];

export const holeCoords2ExpPoly1 = [
  [
    [10,40],
    [10,25],
    [15,25],
    [15,35],
    [35,35],
    [35,25],
    [40,25],
    [40,40],
    [10,40]
  ]
];

export const holeCoords2ExpPoly2 = [
  [
    [-7,25],
    [-7,10],
    [40,10],
    [40,25],
    [35,25],
    [35,15],
    [15,15],
    [15,25],
    [10,25],
    [10,15],
    [3.2,25], // approx
    [-7,25]
  ]
];

export const holeCoords2ExpPoly3 = [
  [
    [-7,25],
    [3.2,25], // approx
    [-7,40],
    [-7,25]
  ]
];